﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminUserInfo.aspx.cs" Inherits="Admin_AdminUserInfo" %>

<%@ Register Src="~/Contents/Admin.ascx" TagName="Admin" TagPrefix="contents" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
  <title></title>
  <script src="../common/common.js" type="text/javascript"></script>
  <script type="text/javascript">
    /************************************************************************
    어드민 신규 등록
    *************************************************************************/
    function fn_NewAdminReg() {
      var sUrl = "../Admin/Popup/AdminUserReg.aspx";
      var rgParam = new Array();
      rgParam["Parameter"] = null;

      var result = fn_OpenModalDialog(sUrl, rgParam, "410", "270");

      alert(result);               
      if (!result) return false;
    }

    /************************************************************************
    어드민 정보 수정
    *************************************************************************/
    function fn_AdminInfoModify() {
      var sUrl = "../Admin/Popup/AdminUserModify.aspx";
      var rgParam = new Array();
      rgParam["USER_ID"] = document.getElementById("lbId").innerHTML;
      rgParam["USER_NAME"] = document.getElementById("lbName").innerHTML;
      rgParam["USER_EMAIL"] = document.getElementById("lbMail").innerHTML;
      rgParam["USER_PHONE"] = document.getElementById("lbPhone").innerHTML;

      var result = fn_OpenModalDialog(sUrl, rgParam, "410", "210");
      if (!result) return false;
    }

    /************************************************************************
    어드민 비밀 번호 수정
    *************************************************************************/
    function fn_AdminPwModify() {
      var sUrl = "../Admin/Popup/AdminPwModify.aspx";
      var rgParam = new Array();
      rgParam["Parameter"] = null;

      var result = fn_OpenModalDialog(sUrl, rgParam, "410", "170");
      if (!result) return false;
    }
  </script>
  <link href="../common/common.css" rel="stylesheet" type="text/css" />
  <style type="text/css">
    #align
    {
      width: 100%;
      text-align: center;
    }
    
    #Content
    {
      margin: 0 auto;
      width: 500px;
      text-align: left;
    }
  </style>
</head>
<body>
  <form id="form1" runat="server">
  <div>
    <contents:Admin ID="Admin" runat="server" />
  </div>
  <div id="align">
    <div id="Content">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="40" align="left" class="text01">
            Welcome,<!--ID출력-->
            sinu
          </td>
        </tr>
        <tr>
          <td style="padding-left: 10px; padding-bottom: 50px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="70" height="30">
                  ID
                </td>
                <td>
                  &nbsp;<asp:Label ID="lbId" runat="server" Text=""></asp:Label>
                </td>
              </tr>
              <tr>
                <td width="70" height="30">
                  이름(한글)
                </td>
                <td>
                  &nbsp;<asp:Label ID="lbName" runat="server" Text=""></asp:Label>
                </td>
              </tr>
              <tr>
                <td width="70" height="30">
                  E-mail
                </td>
                <td>
                  &nbsp;<asp:Label ID="lbMail" runat="server" Text=""></asp:Label>
                </td>
              </tr>
              <tr>
                <td width="70" height="30">
                  Phone
                </td>
                <td>
                  &nbsp;<asp:Label ID="lbPhone" runat="server" Text=""></asp:Label>
                </td>
              </tr>
              <tr>
                <td width="70" height="30">
                  &nbsp;
                </td>
                <td align="right">
                  <asp:ImageButton ID="ibtnInfoModify"  runat="server" ImageUrl="../image/icon/modify2.jpg" OnClientClick="fn_AdminInfoModify();return false;" />
                  <asp:ImageButton ID="ibtnPwModify"  runat="server" ImageUrl="../image/icon/pw_modify.jpg" OnClientClick="fn_AdminPwModify();return false;" />
                  <asp:ImageButton ID="ibtnNewReg"  runat="server" ImageUrl="../image/icon/new.jpg" OnClientClick="fn_NewAdminReg();return false;" />
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <br />
      <br />
    </div>
  </div>
  </form>
</body>
</html>
